package com.shopping.pojo;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

public class Collection {

    @Max(2)@Min(1)
    int type;
    @NotNull
    int userId;
    @NotNull
    int id;

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return "Collection{" +
                "type1=" + type +
                ", userId=" + userId +
                ", id=" + id +
                '}';
    }

}
